<template>
  <view class="page_root">
    
    <iframe
      ref="iframeRef"
      style="border: none; width: 100%; height: calc(100vh - 54px)"
      :src="getUrl()"
      @load="handleIframeLoad"
    ></iframe>
  </view>
</template>

<script setup>
import { ref } from 'vue';
const iframeRef = ref();
// 是否显示菜单按钮
const isMenuIconShow = false;
// NAVIGATION_MENU
const handleShowNavigation = ()=>{};

// 同步登陆态
const handleIframeLoad = () => {
  iframeRef.value.contentWindow.postMessage(
    {
      type: 'SyncLoginStatus',
      data: uni.getStorageSync('app-user')
    },
    '*'
  );
};
const getUrl = () => {
  return window.location.origin + '/allin-workflow-mobile';
};
</script>